#ifndef THREADMUTEX_H_
#define THREADMUTEX_H_

#include <sys/types.h>
#include <pthread.h>
#include <cstdio>
#include <cstdlib>
#include <cerrno>
#include <fcntl.h>

using namespace std;


class ThreadMutex{
private:
	pthread_mutex_t m;

public:
	static ThreadMutex* mutexSharedDemon;
	static ThreadMutex* mutexDemon();
	ThreadMutex();
	void P();
	void V();
	void Eliminar();
};

#endif /* THREADMUTEX_H_ */
